IF EXISTS (SELECT * FROM sysobjects WHERE type = 'P' AND name = 'WebsiteCreate')
	BEGIN
		DROP  Procedure  WebsiteCreate
	END

GO

CREATE Procedure WebsiteCreate
(
	@accountId int,
	@title nvarchar(200),
	@guid nvarchar(50),
	@websiteId int OUTPUT,
	@serviceId int OUTPUT
)
AS

EXEC ServiceCreate @accountId = @accountId, @title = @title, @serviceId = @serviceId OUTPUT

INSERT INTO Websites
	(ServiceId, Guid)
VALUES
	(@serviceId, @guid)
	
SET @websiteId = SCOPE_IDENTITY()

GO